package com.jason.mvc.config;

import java.lang.reflect.Method;
import java.util.List;
import java.util.Set;

public class Handler {

    /**
     * controller对象
     */
    private Object object;

    private String url;

    private Method method;

    private List<ParameterMapping> parameterMappings;

    private Set<String> securityUser;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public List<ParameterMapping> getParameterMappings() {
        return parameterMappings;
    }

    public void setParameterMappings(List<ParameterMapping> parameterMappings) {
        this.parameterMappings = parameterMappings;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Set<String> getSecurityUser() {
        return securityUser;
    }

    public void setSecurityUser(Set<String> securityUser) {
        this.securityUser = securityUser;
    }

    @Override
    public String toString() {
        return "Handler{" +
                "object=" + object +
                ", url='" + url + '\'' +
                ", method=" + method +
                ", parameterMappings=" + parameterMappings +
                ", securityUser=" + securityUser +
                '}';
    }
}
